<?php
return array(
    //'配置项'=>'配置值'
    'DEFAULT_MODULE' => 'Info',
    'DEFAULT_THEME' => 'default',
    'TMPL_TEMPLATE_SUFFIX' => '.php',

    //登录cook名
    'COOK_LOGIN_KEY' => '58shiyanUser',
    //用户密码加密组合值 修改将导致用户登录密码不匹配
    'PASSWORD_KEY'  => 'phpfenlei',
    'COOKIEVALIDATIONKEY' => '58shiyan',

    'PHPFENLEI_VERSION' => 'V2.0',

    'weather_api_key' => '086def76c04542d7895d188603714494',
    'default_weather_city_id' => 1411,

    //数据库配置
    'DB_TYPE' => 'mysql',     // 数据库类型
    'DB_HOST' => 'localhost', // 服务器地址
    'DB_NAME' => 'info_58',          // 数据库名
    'DB_USER' => 'root',      // 用户名
    'DB_PWD' => '',          // 密码
    'DB_PORT' => '3306',        // 端口
    'DB_PREFIX' => '',    // 数据库表前缀

    //错误屏蔽
    'SHOW_ERROR_MSG' => false,
    'ERROR_MESSAGE' =>'发生错误！',


    'DEFALUT_PAGE_SIZE' => 10,
    'PAGE_SIZE' => 60,
    'PAGE_SIZE_SEARCH' => 15,
    //'SHOW_PAGE_TRACE' => false,

    'UPLOAD_DIR' => './UploadFiles/',

    //缩略图配置
    'thumb_width'   => '180',
    'thumb_height'  => '110',
    'thumb_watermark'   => '',
    'thumb_save_path'    => './UploadFiles/info/thum/',
    'thumb_water'   => './Template/default/images/logo.png',

    'open_type' => array(
        0 => '_blank',
        1 => '_self',
    ),

    'info_type' => array(
        0 => '默认信息',
        1 => '置顶信息',
        2 => '便民电话推广',
        3 => '广告信息[一倍格子]',
        4 => '广告信息[两倍格子]',
        5 => '广告信息[四倍格子]',
        99 => '网站公告',
    ),
    'news_type' => array(
        0 => '默认',
        1 => '置顶',
        2 => '轮播推荐',
        3 => '头条',
        99 => '网站公告',
    ),
    'slider_type' => array(
        0 => '默认首页轮播',
        1 => '首页广告轮播',
        2 => '新闻首页广告轮播'
    ),
    'info_grid' => array(
        0   => 1,
        1   => 1,
        2   => 1,
        3   => 1,
        4   => 2,
        5   => 4,
        99  => 4,
    ),
    'grid_style' => array(
        1   => 1,
        2   => 3,
        4   => 6
    ),


    //area
    'city_area' => array(
        1 => '张湾区',
        2 => '茅箭区',
        3 => '白浪区',
        4 => '武当山区',
        5 => '郧县',
        6 => '郧西县',
        7 => '房县',
        8 => '竹山县',
        9 => '竹溪县',
        10 => '其他'
    ),
    //查询手机信息api
    //'get_phone_info_url' => 'http://life.tenpay.com/cgi-bin/mobile/MobileQueryAttribution.cgi?chgmobile=',
    //'GET_PHONE_INFO_URL' => 'http://apis.baidu.com/apistore/mobilenumber/mobilenumber?phone=',
    'GET_PHONE_INFO_URL' => 'http://apis.baidu.com/chazhao/mobilesearch/phonesearch?phone=',
    'PHONE_API_KEY' =>  '95be91f1277208d265b84a7b49bb0bcd',

    'MODULE_ALLOW_LIST' => array('Home', 'Info','User','Admin','Tianqi'),
    'DEFAULT_MODULE' => 'Info',  // 默认模块
    'DEFAULT_CONTROLLER' => 'Index', // 默认控制器名称
    'DEFAULT_ACTION' => 'index', // 默认操作名称


    'URL_ROUTER_ON' => true,    //URL路由
    'URL_MODEL' => 0,           // URL模式
    'URL_PATHINFO_DEPR' => '-',

    'URL_ROUTE_RULES' => array(

        //分类栏目页
        'zhaopin' => array('Info/list/index', 'pid=2'),
        'fangchan' => array('Info/list/index', 'pid=1'),
        'qiuzhi' => array('Info/list/index', 'pid=3'),
        'ershou' => array('Info/list/index', 'pid=4'),
        'zhuanrang' => array('Info/list/index', 'pid=5'),
        'ershouche' => array('Info/list/index', 'pid=6'),
        'bianming' => array('Info/list/index', 'pid=7'),

        //发布
        'fabu$' => 'Info/post/index',
        'fabu/:cid' => 'Info/post/index',
        //验证码
        'infovalidateCode/:id' => 'Info/post/validateCode',
        'infoCheckValidateCode/:code' => 'Info/post/CheckValidateCode',

        //信息展示页
        'xinxi/:id' => 'Info/info/index',
        //信息列表页
        'list/:pid' => 'Info/list/index',
        //新闻
        'news$' => 'News/index/index',
        'news/list/:id' => 'News/list/index',
        'news/article/:id'   => 'News/news/index',

        //分享
        'share/:sid' => 'Info/share/info',

        //插件
        //'weather/top' => 'Info/plugin/weather_index',
        //'weather/top' => 'Info/weather/top',
        'shiyan/weather' => "Info/weather/index",
        'user/myinfo/:id'  => "User/info/minfo",
        'tianqi$' => 'Tianqi/index/index',
        'tianqi/:id' => 'Tianqi/index/index',
        'weather/top$' => 'Tianqi/index/plugin',
        'weather/top/:id' => 'Tianqi/index/plugin',

        //搜索
        'search/getPhoneInfo/:phone' => "Info/search/getPhoneInfo",
        'search/getPhonePosition/:phone' => "Info/search/getPhonePosition",
        'search/phone/:phone' => "Info/search/byPhone",

        //用户中心
        'user$' => 'User/manager/index',
        'register' => 'User/index/register',
        'getpassword' => 'User/index/getPassWord',
        'login' => 'User/index/login',
        'quit' => 'User/index/quit',
        'user/validateCode' => 'User/index/validateCode',
        'favorite' => 'User/index/favorite',
        'User/manager/info/:' => 'user/manager/info',
        'User/manager/user' => 'user/manager/user',
//        'User/index/quit' => 'User/index/quit',

        'about/' => 'Info/about/index',
        'about/contact' => 'Info/about/contact',
        'about/guanggao' => 'Info/about/guanggao',
        'about/links' => 'Info/about/links',

        'wap$' => 'Info/wap/index',
        'wap/xinxi/:id' => 'Info/wap/info',
        'wap/list/:pid' => 'Info/wap/info_list',

        'jump/js_show/:aid' => 'Info/jump/js_show',
    ),

    'phone_color_map' => array('#90b17a','#4492fe','#b56dad','#ff7125','#bdbbc0','#7282b5','#1841e7','#f87429','#7282b5','#ef2849','#4293ff','#f60808','#7282b5','#1841e7','#4293ff','#f60808','#4492fe','#90b17a','#4492fe','#b56dad','#ff7125','#bdbbc0','#7282b5'),
);
